//入口文件
import Vue from 'vue'
//路由
//1.1导入包
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter)
//导入App根组件
import app from './App.vue'
//导入mui
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'
//按需导入MintUI
import {Header,Swipe,SwipeItem} from 'mint-ui'
Vue.component(Header.name,Header);
//轮播图
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

//1.3导入router.js模块
import router from './router.js'
//2.1导入vue-resource
import VueResource from 'vue-resource'
//2.2安装
Vue.use(VueResource)
var vm = new Vue({
    el:'#app',
    render:c=>c(app),
    router
})